{layout name="layout/default" /}
<div class="panel panel-default panel-intro">
  <div class="panel-heading">
    <div class="panel-lead"><em>{$nav_title.title}</em>{$nav_title.remark}</div>
  </div>
  <div class="panel-body">
    <div id="myTabContent" class="tab-content">
      <div class="tab-pane fade active in">
        <div class="widget-body no-padding">
          <div class="bootstrap-table">
            <div class="fixed-table-toolbar">
              <div class="pull-right search" style=" padding-right:10px; padding-left:10px;">
                <select name="status" class="form-control" type="get-select" style="margin:0 10px 0 10px;">
                  <option value="{:admin_url('admin/slide/index',array('cid'=>$cid,'type'=>$type,'order'=>$order))}">状态</option>
                  <option value="{:admin_url('admin/slide/index',array('cid'=>$cid,'status'=>1,'type'=>$type,'order'=>$order))}" {eq name="status" value="1"}selected{/eq}>
                  显示
                  </option>
                  <option value="{:admin_url('admin/slide/index',array('cid'=>$cid,'status'=>2,'type'=>$type,'order'=>$order))}" {eq name="status" value="2"}selected{/eq}>
                  隐藏
                  </option>
                </select></div>
                
                <div class="pull-right search">
            <select name="selectcid" class="form-control" type="get-select" style="margin:0 0 0 10px; float:left">
              <option value="">分类筛选</option>
              <option value="{:admin_url('admin/slide/index',array('status'=>$status,'type'=>$type,'order'=>$order))}">全部</option>
{volist name="channel" id="vo"}<option value="{:admin_url('admin/slide/index',array('cid'=>$vo.list_id,'status'=>$status,'type'=>$type,'order'=>$order))}" {eq name="vo.list_id" value="$cid"}selected{/eq}>{$vo.list_name}</option>{/volist}
<option value="{:admin_url('admin/slide/index',array('cid'=>9999,'status'=>$status,'type'=>$type,'order'=>$order))}" {eq name="cid" value="9999"}selected{/eq}>手机</option></select>          
              </div>
              <div class="bs-bars pull-left">
                <div id="toolbar" class="toolbar"><a href="{:admin_url('admin/slide/index')}" class="btn btn-primary ajax-url"><i class="fa fa-refresh"></i> </a> <a href="javascript:;" data-name="添加幻灯片" data-url="{:admin_url('admin/slide/add')}" class="btn btn-success btn-add btn-editone" data-width="100%" data-height="100%" data-offset="0px"><i class="fa fa-plus"></i> 添加</a> <a  url="{:admin_url('admin/slide/status',array('status'=>1))}" target-form="ids" class="confirm btn btn-info btn-disabled ajax-post disabled"><i class="fa fa-unlock"></i> 显示</a> <a  url="{:admin_url('admin/slide/status',array('status'=>0))}" target-form="ids" class="confirm btn btn-warning btn-disabled ajax-post disabled"><i class="fa fa-lock"></i> 隐藏</a> <a  url="{:admin_url('admin/slide/del')}" target-form="ids" class="confirm btn btn-danger btn-del btn-disabled ajax-post disabled"><i class="fa fa-trash"></i> 删除</a> <span id="selectedChks" style="display:none">已选择<strong></strong>记录</span> </div>
              </div>
            </div>
          </div>
          <div class="fixed-table-container" style="padding-bottom: 0px;" id="contents">
            <div class="fixed-table-body">
              <form class="ids">
            <table id="table" class="table table-striped table-bordered table-hover" style="margin-top: 0px;" width="100%">
            <thead>
            <tr style="height:45px;">
              <th align="center" class="bs-checkbox"><input name="chkall" type="checkbox" id="chkall"></th>
              <th style="text-align:center;vertical-align: middle;">{eq name="orders" value="slide_id desc"}<a href="{:admin_url('admin/slide/index',array('cid'=>$cid,'status'=>$status,'type'=>'slide_id','order'=>'asc'))}" class="btn-link sort ajax-url">编号 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:admin_url('admin/slide/index',array('cid'=>$cid,'status'=>$status,'type'=>'slide_id','order'=>'desc'))}" class="btn-link sort ajax-url">编号 <i class="fa fa-angle-down"></i></a>{/eq}</th>
              <th style="text-align:center;vertical-align: middle;">幻灯片图片</th>
              <th style="text-align:center;vertical-align: middle;">幻灯片名称</th>
              <th style="text-align:center;vertical-align: middle;">
              {eq name="orders" value="slide_cid desc"}<a href="{:admin_url('admin/slide/index',array('cid'=>$cid,'status'=>$status,'type'=>'slide_cid','order'=>'asc'))}" class="btn-link sort ajax-url">幻灯片分类 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:admin_url('admin/slide/index',array('cid'=>$cid,'status'=>$status,'type'=>'slide_cid','order'=>'desc'))}" class="btn-link sort ajax-url">幻灯片分类 <i class="fa fa-angle-down"></i></a>{/eq}
              </th>
              <th style="text-align:center;vertical-align: middle;">
             {eq name="orders" value="slide_oid desc"}<a href="{:admin_url('admin/slide/index',array('cid'=>$cid,'status'=>$status,'type'=>'slide_oid','order'=>'asc'))}" class="btn-link sort ajax-url">排序 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:admin_url('admin/slide/index',array('cid'=>$cid,'status'=>$status,'type'=>'slide_oid','order'=>'desc'))}" class="btn-link sort ajax-url">排序 <i class="fa fa-angle-down"></i></a>{/eq}
             </th>
              <th style="text-align:center;vertical-align: middle;">幻灯片状态</th>
              <th style="text-align:center;vertical-align: middle;">操作</th>
            </tr>
                  </thead>
                  <tbody>            
                  {notempty name="list"}
                  {volist name="list" id="vo"}
                <tr>
                <td class="bs-checkbox" style="text-align:center;vertical-align: middle;"><input name="id[]" type="checkbox" value="{$vo['slide_id']}" id="checkbox"></td>
                <td style="text-align:center;vertical-align: middle;">{$vo.slide_id}</td>
                <td style="text-align:center;vertical-align: middle;"><a href="{:zanpian_img_url($vo['slide_pic'])}" target="_blank"><img src="{:zanpian_img_url($vo['slide_pic'])}" width="150px" height="75px" alt="查看原图" style="border:1px solid #CCCCCC;padding:1px;"></a></td>
                <td style="text-align:center;vertical-align: middle;"><p><a href="#" class="editable editable-click" data-id="{$vo['slide_id']}" data-name="slide_name" data-type="text" data-pk="{$vo['slide_id']}" data-url="{:admin_url('editable')}">{$vo.slide_name}</a></p>{notempty name="vo['vod_name']"}<br /><p>关联视频：{$vo.vod_name}</p>{/notempty}</td>
                <td style="text-align:center;vertical-align: middle;">{eq name="vo.slide_cid" value="-1"}手机{else/}{:getlistname($vo['slide_cid'])}{/eq}</td>
                <td style="text-align:center;vertical-align: middle;"><a href="#" class="editable editable-click" data-id="{$vo['slide_id']}" data-name="slide_oid" data-type="text" data-pk="{$vo['slide_id']}" data-url="{:admin_url('admin/slide/editable')}">{$vo.slide_oid}</a></td>
                <td style="text-align:center;vertical-align: middle;">
                {eq name="vo.slide_status" value="1"}
				<a href="{:admin_url('admin/slide/status',array('id'=> $vo['slide_id'],'status'=>0))}" class="btn  btn-xs btn-default ajax-get">显示</a>{else/}<a href="{:admin_url('admin/slide/status',array('id'=> $vo['slide_id'],'status'=>1))}" class="btn btn-info btn-xs btn-danger ajax-get">隐藏</a>
				{/eq}
                 </td>
                <td style="text-align:center;vertical-align: middle;">
                <a href="javascript:;" data-name="编辑幻灯片" data-url="{:admin_url('admin/slide/edit',array('id'=>$vo['slide_id']))}" class="btn btn-success btn-editone btn-xs" data-width="100%" data-height="100%" data-offset="0px"><i class="fa fa-pencil"></i> 编辑</a> <a url="{:admin_url('admin/slide/del',array('id'=>$vo['slide_id']))}" class="confirm btn btn-danger btn-xs confirm ajax-get"><i class="fa fa-trash-o"></i> 删除</a></td>
              </tr>
  {/volist}   
                  {else/}
                  <tr>
                    <td style="text-align:center;vertical-align: middle;" colspan="8" >抱歉，没有找到相关内容！</td>
                  </tr>
                  {/notempty}
                  </tbody>
                </table>
              </form>
            </div>
            {gt name="list->lastPage()" value="1"}
            <div class="fixed-table-pagination" style="overflow:hidden">
              <div class="pull-left pagination-detail"><span class="pagination-info">共{$list->total()}条 {$list->currentPage()}/{$list->lastPage()} </span><span class="page-list">每页显示 {$list->listRows()} 条</span></div>
              <div class="pull-right pagination">
                <ul class="pagination">
                  {$page}
                </ul>
              </div>
            </div>
            {/gt}
          </div>
        </div>
        <div class="clearfix"></div>
      </div>
    </div>
  </div>
</div>
</div>
